import Vue from 'vue'
import Router from 'vue-router'

import index from '@/page/index'
import page from '@/page/page'
import newsList from '@/page/newsList'
import productList from '@/page/productList'
import product from '@/page/product'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: index
    },
    {
      path: '/page/:id/:active',
      component: page
    },
    {
      path: '/newsList/:id/:page/:active',
      component: newsList
    },
    {
      path: '/productList/:id/:page/:active',
      component: productList
    },
    {
      path: '/product/:id/:active',
      component: product
    },
  ]
})
